
/* <<< COPYRIGHT START >>>
 * Copyright 2006-Present OxygenSoftwareLibrary.com
 * Licensed under the GNU Lesser General Public License.
 * http://www.gnu.org/licenses/lgpl.html
 * 
 * @author: Ugorji Dick-Nwoke
 * <<< COPYRIGHT END >>>
 */


package oxygen.tool.wlfacade.plugins;

import oxygen.tool.facade.FacadePluginAdapter;
import oxygen.tool.wlfacade.WLFacadeContextHelper;
import oxygen.tool.wlfacade.helpers.WLConfig;

public class Set extends FacadePluginAdapter {

  public void execute(String attname, Object attval) throws Exception {
    execute(attname, attval, false);
  }
  
  public void execute(String attname, Object attval, boolean isStr) throws Exception {
    WLFacadeContextHelper wlctx = new WLFacadeContextHelper(ctx);
    if(isStr) {
      WLConfig.setattstr(wlctx, attname, (String)attval);
    } else {
      WLConfig.setatt(wlctx, attname, attval);
    }
  }
  
}

